<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>@scope</title>

    <style>
      :root {
        --text: red;
      }

      .card__header {
        color: var(--text);
      }

      /* with @scope becomes */

      @scope (.card) {
        .header {
          color: var(--text);
        }
      }
    </style>
  </head>
  <body>
    <div class="card">
      <div class="header">header</div>
    </div>
    <div class="card">
      <div class="card__header">card__header</div>
    </div>
  </body>
</html>
